package com.zj.service;

import com.zj.dao.UserRedPacketMapper;
import com.zj.web.bean.UserRedPacketDTO;
import lombok.AllArgsConstructor;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
@Log
public class UserRedPacketServiceImpl implements UserRedPacketService {
    @Autowired
    private UserRedPacketMapper userRedPacketMapper;

    @Override
    public List<UserRedPacketDTO> findByUserId(Long userId) {
        List<UserRedPacketDTO> userRedPacketDTOS = userRedPacketMapper.findByUserId(userId);
        return userRedPacketDTOS;
    }

}
